from sqlalchemy.orm import Mapped, mapped_column

from src.database.models import TimedBaseModel


class BotSettings(TimedBaseModel):
    __tablename__ = "bot_settings"
    __mapper_args__ = {"eager_defaults": True}

    id: Mapped[int] = mapped_column(primary_key=True)
    price_one_calendar_ru: Mapped[float]
    price_seven_calendars_ru: Mapped[float]
    price_unlimited_ru: Mapped[float]
    price_one_calendar_en: Mapped[float]
    price_seven_calendars_en: Mapped[float]
    price_unlimited_en: Mapped[float]
    price_one_calendar_uk: Mapped[float]
    price_seven_calendars_uk: Mapped[float]
    price_unlimited_uk: Mapped[float]

    def __repr__(self):
        return f"<Настройки бота №{self.id}>"

    def __str__(self):
        return self.__repr__()
